package com.ruoyi.common.core.domain.base.datam;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 水管员信息登记对象 wi_main_b
 * 
 * @author hwd
 * @date 2023-02-16
 */
@Data
@TableName("wi_main_b")
public class WiMainB extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 水管员编码*/
    private String mainCd;

    private String[] chanCd;

    /** 水管员名称 */
    @Excel(name = "水管员名称")
    private String mainNm;

    /** 水管员地址*/
    @Excel(name = "水管员地址")
    private String mobileAddr;

    /** 水管员电话 */
    @Excel(name = "水管员电话")
    private String mobileNo;

    /** 所属机构 */

    private String orgCd;

    @Excel(name = "所属机构")
    private String orgNm;

    /** 当前状态*/
    @Excel(name = "当前状态")
    private String mainStatus;

    /** 聘用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "聘用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginDate;

    /** 解聘日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "解聘日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 操作人员 */
    @Excel(name = "操作人员")
    private String mainOper;

    /** 备注 */
    @Excel(name = "备注")
    private String mainMark;

    public void setMainCd(String mainCd) 
    {
        this.mainCd = mainCd;
    }

    public String getMainCd() 
    {
        return mainCd;
    }
    public void setMainNm(String mainNm) 
    {
        this.mainNm = mainNm;
    }

    public String getMainNm() 
    {
        return mainNm;
    }
    public void setMobileAddr(String mobileAddr) 
    {
        this.mobileAddr = mobileAddr;
    }

    public String getMobileAddr() 
    {
        return mobileAddr;
    }
    public void setMobileNo(String mobileNo) 
    {
        this.mobileNo = mobileNo;
    }

    public String getMobileNo() 
    {
        return mobileNo;
    }
    public void setOrgCd(String orgCd) 
    {
        this.orgCd = orgCd;
    }

    public String getOrgCd() 
    {
        return orgCd;
    }
    public void setMainStatus(String mainStatus) 
    {
        this.mainStatus = mainStatus;
    }

    public String getMainStatus() 
    {
        return mainStatus;
    }
    public void setBeginDate(Date beginDate) 
    {
        this.beginDate = beginDate;
    }

    public Date getBeginDate() 
    {
        return beginDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setMainOper(String mainOper) 
    {
        this.mainOper = mainOper;
    }

    public String getMainOper() 
    {
        return mainOper;
    }
    public void setMainMark(String mainMark) 
    {
        this.mainMark = mainMark;
    }

    public String getMainMark() 
    {
        return mainMark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mainCd", getMainCd())
            .append("mainNm", getMainNm())
            .append("mobileAddr", getMobileAddr())
            .append("mobileNo", getMobileNo())
            .append("orgCd", getOrgCd())
            .append("mainStatus", getMainStatus())
            .append("beginDate", getBeginDate())
            .append("endDate", getEndDate())
            .append("mainOper", getMainOper())
            .append("mainMark", getMainMark())
            .toString();
    }
}
